const localStorage = {
  get(key: string): any {
    return JSON.parse(window.localStorage.getItem(key) || 'null');
  },
  set(key: string, value: any): void {
    window.localStorage.setItem(key, JSON.stringify(value));
  },
};

export default localStorage;